﻿using JESAI.DDD.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace JESAI.Uow
{
    public interface IUnitOfWork : IDisposable
    {
        bool IsTran { get; set; }
        bool IsCommit { get; set; }
        bool IsClose { get; set; }

        IRepository<T> GetRepository<T>() where T : class, new();
        bool Commit();

        public void Rollback();
    }
}
